<?php
$position = isset($position) ? $position : 'top';
$pagination_id = !empty($pagination_id) ? $pagination_id : 'pagination_contents';
$ajax_class = isset($ajax_class) ? $ajax_class : 'cm-ajax';
?>
<div class="pagination cm-pagination-wraper center clear pagination-<?php echo $position ?>">
	<div class="pagination-list-nav p-list-nav-<?php echo $position ?>">
		<div class="pagination-list-func clearfix">
			<div class="pagination-list-sort">Displaying from <strong><?php echo $pagination->offset + 1 ?></strong> to <strong><?php echo $pagination->offset + $pagination->pageSize > $pagination->itemCount ? $pagination->itemCount : $pagination->offset + $pagination->pageSize ?></strong> trong <strong><?php echo $pagination->itemCount ?></strong> sản phẩm</div>
			<div class="pagination-list-page">
				<?php
				$pager = array(
					'pages' => $pagination,
					'cssFile' => false,
					'itemOptions' => array(
						'class' => $ajax_class,
						'rev' => $pagination_id,
						'name' => 'pagination',
					),
				);
				$this->widget('MyLinkPager', $pager); ?>
			</div>
		</div>
	</div>
</div>